﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace com.IronOne.BoardAppWeb.Models.UserRoleMgt
{
    public class UserRoleMgtModels
    {
        public string firstName { get; set; }
        public string lastName { get; set; }
        public string roleName { get; set; }
        public Guid roleId { get; set; }
        public int customUserId { get; set; }
        public bool isApplicable { get; set; }
    }

    public class SecurityMgtModel 
    {
        public List<SubCategorySecurityModel> SubCategories { get; set; }
        public int CategoryId { get; set; }
        public String CategoryName { get; set; }
    }

    public class SubCategorySecurityModel
    {
        public string SubCategoryName { get; set; }
        public int SubCategoryId { get; set; }
    }

    public class UserRoleManagemenModel 
    {
        public bool isApplicable { get; set; }
        public int customUserId { get; set; }
        public Guid userId { get; set; }
        public string userName { get; set; }
        public string firstName { get; set; }
        public string lastName { get; set; }
        public Guid roleId { get; set; }
        public string roleName { get; set; }
        public string accessType { get; set; }
        [UIHint("List")]
        public IEnumerable<SelectListItem> selectListItem { get; set; }
    }

    public class AssignSecurityModelList
    {
        public List<UserRoleManagemenModel> AssignSecurity { get; set; }
        public string categoryName { get; set; }
        public string subCategoryName { get; set; }
        public DateTime date { get; set; }
    }

}